<?php
	
	execQuery("UPDATE membres SET userlogout = '". date('Y-m-d H:i:s') ."' WHERE userid = '". $_SESSION['userid']. "'");
	$_SESSION = array();
	session_destroy();

?>